package com.taldh.design.patterns.observer.impl;

/**
 * 观察者孙悟空
 * date 2020/5/26
 *
 * @author 袁小黑
 * @version 1.0.0
 **/

class Sunwukong implements Dahuaxiyou{

    @Override
    public void update(Weather subject, WeatherType argument) {
        switch (argument) {
            case SUNNY:
                System.out.println("驾着七彩祥云");
                break;
            case RAINY:
                System.out.println("闪亮登场");
                break;
            case WINDY:
                System.out.println("放屁");
                break;
            case COLD:
                System.out.println("去救师傅");
        }
    }
}
